﻿import java.util.Scanner;

public class L {

	public static void main(String[] args) {
		
		Scanner input = new Scanner(System.in);
		System.out.println("请输入生日(月)：");
		int month= input.nextInt();
		System.out.println("请输入生日(日)：");
		int day= input.nextInt();
		if((month==1&&(day>=20&&day<=31))||(month==2&&(day>=1&&day<=18))){
			System.out.println("水平座");
		}else if((month==2&&(day>=19&&day<=19))||(month==3&&(day>=1&&day<=20))){
			System.out.println("双鱼座");
		}else if((month==3&&(day>=21&&day<=31))||(month==4&&(day>=1&&day<=19))){
			System.out.println("白羊座");
		}else if((month==4&&(day>=20&&day<=31))||(month==5&&(day>=1&&day<=20))){
			System.out.println("金牛座");
		}else if((month==5&&(day>=21&&day<=31))||(month==6&&(day>=1&&day<=21))){
			System.out.println("双子座");
		}else if((month==6&&(day>=22&&day<=31))||(month==7&&(day>=1&&day<=22))){
			System.out.println("巨蟹座");
		}else if((month==7&&(day>=23&&day<=31))||(month==8&&(day>=1&&day<=22))){
			System.out.println("狮子座");
		}else if((month==8&&(day>=23&&day<=31))||(month==9&&(day>=1&&day<=22))){
			System.out.println("处女座");
		}else if((month==9&&(day>=23&&day<=31))||(month==10&&(day>=1&&day<=23))){
			System.out.println("天秤座");
		}else if((month==10&&(day>=24&&day<=31))||(month==11&&(day>=1&&day<=22))){
			System.out.println("天蝎座");
		}else if((month==11&&(day>=23&&day<=31))||(month==12&&(day>=1&&day<=21))){
			System.out.println("射手座");
		}else if((month==12&&(day>=22&&day<=31))||(month==1&&(day>=1&&day<=19))){
			System.out.println("摩羯座");
		}else{
			System.out.println("输入错误！");
		}
	}
}